<p class="h2">Похожие объявления</p>
<ul>
<?php $Params = array( 'zc'=>1,/* зоом с вырезанием */); ?>
<?php foreach ($other as $model) { ?>
	<li class="bottom_item">
		<?php $photos = $model->homePhotoses; 
			if (count($photos)) {
				$firstPhoto = $photos[0];
				$src = Home::getFolder($firstPhoto->path, false).$firstPhoto->path;
				//if (file_exists($src))
				$srcSmall = ImageResizer::resizeImage($src, array('w'=>225, 'h'=>142), 0, $Params, 'catalog');
			?>
			<a class="full-link other_image" href="<?php echo $this->createUrl('home/view',array('city'=>'nsk', 'id'=>$model->id));?>"><?php echo CHtml::image($srcSmall ? $srcSmall : $src);?></a>
			<?php /*$count = count($photos);?>
			<?php if ($count - 1 > 0) { ?><span><?php echo $count?> фото</span><?php } */?>
		<?php } else { ?>
		<a class="full-link" href="<?php echo $this->createUrl('home/view',array('city'=>'nsk', 'id'=>$model->id));?>"><?php echo CHtml::image('/images/nophoto.jpg');?></a>
		<?php }?>
		<div class="other_text">
		<p class="h3"><?php echo $model->getTypeStr()?></p>
		<p><?php echo $model->getAddress(false).'<br>'.($model->metro_id>0 ? 'метро '.$model->metro->caption : '')?></p>
		</div>
		<label><?php echo number_format($model->cost, 0, '.', ' ');?> руб/мес</label>
	</li>
<?php } ?>
</ul>